package com.itheima.test;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //从键盘录入一个整数,分别输出每一位数
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一位整数：");
        int n = sc.nextInt();
        while (n != 0)
        {
            System.out.println(n % 10);
            n /= 10;
        }
    }
}
